package ess.control;

public class ElevatorRequest {
	int elevatorId;
	int targetFloor;
	public ElevatorRequest(int elevatorId, int targetFloor)
	{
		this.elevatorId = elevatorId;
		this.targetFloor = targetFloor;
	}
	
	int getElevatorId()
	{
		return elevatorId;
	}
	
	int getTargetFloor(){
		return targetFloor;
	}
	
	public boolean equals(Object obj) {
		ElevatorRequest req = (ElevatorRequest) obj;
		if(req.getElevatorId() == elevatorId && req.getTargetFloor() == targetFloor)
			return true;
		return false;
	}
}
